<?php

/**
 * 页面模板区位定义
 */
Route::get('application/pagetpl_areas', ['as'=> 'application.pagetpl_areas.index', 'uses' => 'Application\PagetplAreaController@index']);
Route::post('application/pagetpl_areas', ['as'=> 'application.pagetpl_areas.store', 'uses' => 'Application\PagetplAreaController@store']);
Route::get('application/pagetpl_areas/create', ['as'=> 'application.pagetpl_areas.create', 'uses' => 'Application\PagetplAreaController@create']);
Route::put('application/pagetpl_areas/{pagetpl_areas}', ['as'=> 'application.pagetpl_areas.update', 'uses' => 'Application\PagetplAreaController@update']);
Route::patch('application/pagetpl_areas/{pagetpl_areas}', ['as'=> 'application.pagetpl_areas.update', 'uses' => 'Application\PagetplAreaController@update']);
Route::delete('application/pagetpl_areas/{pagetpl_areas}', ['as'=> 'application.pagetpl_areas.destroy', 'uses' => 'Application\PagetplAreaController@destroy']);
Route::get('application/pagetpl_areas/{pagetpl_areas}', ['as'=> 'application.pagetpl_areas.show', 'uses' => 'Application\PagetplAreaController@show']);
Route::get('application/pagetpl_areas/{pagetpl_areas}/edit', ['as'=> 'application.pagetpl_areas.edit', 'uses' => 'Application\PagetplAreaController@edit']);


// 根据模板类型获取不同模板
Route::get('application/pagetpl_areas/paneltpl_types/view', ['as'=> 'application.pagetplareas.paneltpl_types', 'uses' => 'Application\PagetplAreaController@getTpldataByTpltype']);

// ajax根据类型获取不同模板数据
Route::get('application/pagetpl_areas/paneltpl_types/{paneltpl_types}/tpldatas', ['as'=> 'application.pagetplareas.paneltpl_types.tpldats', 'uses' => 'Application\PagetplAreaController@getTpldata']);